package com.xiaomiMall.mange.domain;

import com.ruoyi.common.core.domain.BaseEntity;

public class MallLoginUser extends BaseEntity {

    /** 商城用户ID */
    private Long userId;

    /** 商城用户唯一标识 */
    private String token;

    /**
     * 登录时间
     */
    private Long loginTime;

    /**
     * 过期时间
     */
    private Long expireTime;

    /** 商城用户信息 */
    private MallUser mallUser;

    public MallLoginUser(Long userId, String token, Long loginTime, Long expireTime, MallUser mallUser) {
        this.userId = userId;
        this.token = token;
        this.loginTime = loginTime;
        this.expireTime = expireTime;
        this.mallUser = mallUser;
    }

    public MallLoginUser() {
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public Long getLoginTime() {
        return loginTime;
    }

    public void setLoginTime(Long loginTime) {
        this.loginTime = loginTime;
    }

    public Long getExpireTime() {
        return expireTime;
    }

    public void setExpireTime(Long expireTime) {
        this.expireTime = expireTime;
    }

    public MallUser getMallUser() {
        return mallUser;
    }

    public void setMallUser(MallUser mallUser) {
        this.mallUser = mallUser;
    }

    @Override
    public String toString() {
        return "MallLoginUser{" +
                "userId=" + userId +
                ", token='" + token + '\'' +
                ", loginTime=" + loginTime +
                ", expireTime=" + expireTime +
                ", mallUser=" + mallUser +
                '}';
    }
}
